<?php

use App\Http\Controllers\Admin\AuthController;

use App\Http\Controllers\Admin\CourseController;
use App\Http\Controllers\Admin\SchoolController;
use App\Http\Controllers\LoginController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return redirect('/build/#/home/index');
});
Route::get('course/list', [CourseController::class,'list']);






Route::get('/admin', function () {
//    return "阿斯顿撒旦撒旦";
    return bcrypt('admin888');
});
Route::get('login', [LoginController::class, 'login']);
Route::group(['middleware'=>'admin'],function () {

    Route::get('logout', [LoginController::class, 'logout']);
});
